﻿using System;
using System.Collections.Generic;
using System.Text;
using OZDoo.Core;
using OZDoo.Core.Log;
using OZDoo.Core.Providers;

namespace OZDoo.Core.Caching
{
    /// <summary>
    /// 缓存管理类,负责创建,管理缓存对象。
    /// </summary>
    public class CacheManage
    {
        private static string providername = "Caching";
        private static ICache _cache=null;
        /// <summary>
        /// 创建,并获取一个缓存接口对象
        /// </summary>
        /// <returns>缓存接口对象,提供缓存操作</returns>
        public static ICache GetCache()
        {
            if (_cache == null)
            {
                    _cache = new WebCacheProvider();
            }
            return _cache;
        }

    }
}
